package edu.nf.project.entitys.dto.employeeAndCustomerInformation;

import com.fasterxml.jackson.annotation.JsonFormat;
import edu.nf.project.entitys.entity.employeeAndCustomerInformation.convention.Coupon;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author CSY
 * @date 2025 - 06 - 05
 * 优惠券详细信息（根据账户表和顾客表查询）
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CouponDTO {
    // 用户相关字段
    private Integer customerId;
    private Integer uId;
    private Integer memberId;

    // 优惠券核心字段
    private Integer couponId;
    private String couponName;
    private String couponType;
    private BigDecimal discount;
    private BigDecimal minAmount;
    private BigDecimal reduceAmount;
    private Integer term;
    private Integer needPoint;
    private Integer couponStatus;
    private String couponDescribe;

    // 时间字段
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date obtainTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date deadlineTime;

}
